package cn.dakaqi.group.recruit.services;

import cn.dakaqi.entities.GroupRecruit;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by chunyang on 2016/4/22.
 */
public interface GroupRecruitService
{
    void create(String param)throws ServiceRuntimeException;
    void save(GroupRecruit groupRecruit)throws ServiceRuntimeException;
    void update(GroupRecruit groupRecruit)throws ServiceRuntimeException;
    void updateStatus()throws ServiceRuntimeException;
    GroupRecruit findNotEnd(String groupCode)throws ServiceRuntimeException;
    GroupRecruit findOne(Long id)throws ServiceRuntimeException;
    List<GroupRecruit> findByGroup(Long groupId)throws ServiceRuntimeException;
    List<GroupRecruit> findByGroupCode(String groupCode)throws ServiceRuntimeException;
    GroupRecruit findLastByGroupCode(String groupCode,int status)throws ServiceRuntimeException;
    List<GroupRecruit> findByServiceField(String createTime,String serviceField)throws ServiceRuntimeException;
    Page<GroupRecruit> findAll(String createTime,int pageNumber) throws ServiceRuntimeException;
    List<GroupRecruit> findTitleLike(String trim)throws ServiceRuntimeException;
    List<GroupRecruit> findByJobSkillSerivice(String tag) throws ServiceRuntimeException;
}
